
package cn.edu.scau.cmi.hombio.service;

import cn.edu.scau.cmi.hombio.domain.Inspection;
import cn.edu.scau.cmi.hombio.domain.PigHouse;
import cn.edu.scau.cmi.hombio.domain.PigHouseType;
import cn.edu.scau.cmi.hombio.domain.Pigsty;
import cn.edu.scau.cmi.hombio.domain.TaskPighouse;

import java.util.List;
import java.util.Set;

/**
 * Spring service that handles CRUD requests for PigHouse entities
 * 
 */
public interface PigHouseService {

	/**
	* Save an existing PigHouseType entity
	* 
	 */
	public PigHouse savePigHousePigHouseType(Integer id, PigHouseType related_pighousetype);

	/**
	* Delete an existing PigHouse entity
	* 
	 */
	public void deletePigHouse(PigHouse pighouse);

	/**
	* Delete an existing PigHouseType entity
	* 
	 */
	public PigHouse deletePigHousePigHouseType(Integer pighouse_id, Integer related_pighousetype_id);

	/**
	* Delete an existing TaskPighouse entity
	* 
	 */
	public PigHouse deletePigHouseTaskPighouses(Integer pighouse_id_1, Integer related_taskpighouses_id);

	/**
	* Delete an existing Inspection entity
	* 
	 */
	public PigHouse deletePigHouseInspections(Integer pighouse_id_2, Integer related_inspections_id);

	/**
	* Save an existing Inspection entity
	* 
	 */
	public PigHouse savePigHouseInspections(Integer id_1, Inspection related_inspections);

	/**
	* Save an existing Pigsty entity
	* 
	 */
	public PigHouse savePigHousePigsties(Integer id_2, Pigsty related_pigsties);

	/**
	* Return all PigHouse entity
	* 
	 */
	public List<PigHouse> findAllPigHouses(Integer startResult, Integer maxRows);

	/**
	* Return a count of all PigHouse entity
	* 
	 */
	public Integer countPigHouses();

	/**
	* Delete an existing Pigsty entity
	* 
	 */
	public PigHouse deletePigHousePigsties(Integer pighouse_id_3, Integer related_pigsties_id);

	/**
	* Save an existing PigHouse entity
	* 
	 */
	public void savePigHouse(PigHouse pighouse_1);

	/**
	* Save an existing TaskPighouse entity
	* 
	 */
	public PigHouse savePigHouseTaskPighouses(Integer id_3, TaskPighouse related_taskpighouses);

	/**
	 */
	public PigHouse findPigHouseByPrimaryKey(Integer id_4);

	/**
	* Load an existing PigHouse entity
	* 
	 */
	public Set<PigHouse> loadPigHouses();
}